<?php

/*
 * @package WordPress
 * @subpackage WelCare
 */
 
get_header();?>

<div class="container">
	
	<!-- Page Banner -->
	<?php fw_subpages_banner('author'); ?>
	
	<!-- BreadCrumb -->
	<div class="breadcrumbs">
		<?php echo get_the_breadcrumb(); /** add breadcrumbs */?>
	</div>
	
	<?php if (have_posts()) : /** start our loop */ ?>
	
	<!-- Content Area -->
	<div id="contents_area">
		<div class="contents">
			<?php $count = 1;
			while(have_posts()) : the_post();

				$style = ($s = get_post_meta($post->ID, 'post_style', true)) ? $s : 'style1'; /** switch post style */
				$block = ($count == count($posts)) ? 'block last' : 'block';
				wl_style_switcher($style, $block) /** function to show html according to the provided style in theme_functions.php */;
				$count++;
			
			endwhile; /** End While Loop */?>
			
			<!-- Pagination -->
			<?php the_pagination();?>
		</div>
	</div>
	<?php endif; ?>
	
	<!-- Sidebar -->
	<div id="side_bar">
		<?php _load_dynamic_sidebar('author', 'blog-sidebar'); /** Display widgetize sidebar */ ?>
	</div>
</div>

<?php get_footer(); /** Add footer area */?>